Adwaita: don't cast shadows for halt-tiled windows
authorJakub Steiner <jimmac@gmail.com>
Tue, 9 Feb 2021 17:57:31 +0000 (18:57 +0100)
committerJakub Steiner <jimmac@gmail.com>
Tue, 9 Feb 2021 17:57:31 +0000 (18:57 +0100)
- while the case of a single half tiled window casting shadow is valid,
  the main use case for half tiled windows is when they have a neighbor.
  The :backdrop should be enough of a focus indicator and we avoid shadow
  casting on neighbors that are on the same Z level.

gtk/theme/Adwaita/_common.scss

index e7c33f8d19297089cb9982320c4fe9012399e700..03bd00f154bad4f875f7e12535f274ab1ae0bed7 100644 (file)
@@ -4100,9 +4100,6 @@ window {
 
       &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
     }
-
-    &.maximized,
-    &.fullscreen { box-shadow: none; }
   }
 
   &.maximized,
@@ -4111,7 +4108,7 @@ window {
   &.tiled-top,
   &.tiled-left,
   &.tiled-right,
-  &.tiled-bottom { border-radius: 0; }
+  &.tiled-bottom { border-radius: 0; box-shadow: none; }
 
   &.popup { box-shadow: none; }